package cn.lutu.lutu.mapper;

import cn.lutu.lutu.pojo.entity.Cart;
import cn.lutu.lutu.pojo.vo.CartVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @date 2023-06-03
 * @author luoyinhan
 * */
@Repository
public interface CartMapper {
    int insert(Cart cart);

    int deleteById(Long id);

    List<CartVO> selectAll(Long id);

    Cart selectById(Long id);

    List<CartVO> selectByCategoryAndKeyword(Long categoryId, String keyword,Long uid);
}
